﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AOOR.Utilities
{
    public static class StringExtensions
    {
        public static bool ContainsAny(this string str, IEnumerable<string> strings,
            StringComparison comparisonType = StringComparison.CurrentCulture)
        {
            return (strings.Any(s => str.IndexOf(s, comparisonType) >= 0));
        }
    }
}
